package com.shycloud.mido.common.pay.wxpaynew;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Xiaoxing Yu
 * @date 2020/10/10
 **/

@Getter
@AllArgsConstructor
public enum WXPayResult {

	/**
	 * 支付失败(其他原因，如银行返回失败)
	 */
	PAYERROR(0, "PAYERROR","支付失败"),

	/**
	 * 支付成功
	 */
	SUCCESS(1, "SUCCESS", "支付成功"),

	/**
	 * 用户支付中
	 */
	USERPAYING(2, "USERPAYING", "用户支付中"),

	/**
	 * 未支付
	 */
	NOTPAY(3, "NOTPAY","未支付"),

	/**
	 * 转入退款
	 */
	REFUND(4, "REFUND","转入退款"),

	/**
	 * 已关闭
	 */
	CLOSED(5, "CLOSED","已关闭"),

	/**
	 * 已撤销（刷卡支付）
	 */
	REVOKED(6, "REVOKED","刷卡支付");

	/**
	 * 类型
	 */
	private final int type;

	/**
	 * state
	 */
	private final String state;
	/**
	 * 描述
	 */
	private final String description;

}
